
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>飞航计算机</title>
    <link href="/static/css/Login.css" rel="stylesheet" type="text/css">
</head>
<body>


<div id="box" align="center" class="container">


    <div id="v" class="jumbotron">
        <div id="logo"><p><strong id="tips">赛博云平台</strong></p></div>
        <hr class="xian">
        <h2 id="h">欢迎登录</h2>

        <form action="/workLog/loginCheck.ht" method="post" onsubmit="return cleck()">

            <p>
                <label class="lable">用户账号</label>&nbsp;&nbsp;
                <input type="text" name="username"
                       id="username"placeholder="请输入用户账号"/>
            </p>
            <p>
                <label class="lable">用户密码</label>&nbsp;&nbsp;<input type="password" name="password" id="pwd"
                                                                    placeholder="请输入密码"/>
            </p>

            <input type="submit" value="立刻登录" id="login"/>


<!--
            <p id="register">您还没有账号？<a href="register.html" id=r1>立即注册</a></p>
-->
            <br>
            <#if error??>
            <span><strong style="color: #FF5722">${error}</strong></span>

            <#else>
            <span><strong></strong></span>
        </#if>
        </form>
    </div>
</div>
<video class="bg_video" src="/static/img/loginvideo.mp4" width="100%" autoplay loop muted></video>

<script type="text/javascript">

    if(window !=top ){
        top.location.href = location.href;
    }
    function cleck() {

        var user = document.getElementById("username").value;//取用户账号
        var password = document.getElementById("pwd").value;//取密码值


        if (user == null || user == "") {
            alert("用户账号不能为空！");
            return false;
        }
        if (password == null || password == "") {
            alert("密码不能为空！");
            return false;
        }

        return true;
    }

</script>
</body>
</html>